<template>
  <div class="recommend">
    <div v-for="item in recommends">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <p>{{ item.title }}</p>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "",
    props: {
      recommends: {
        type: Array,
        default(){
          return []
        }
      }
    }
  }
</script>

<style lang="less" scoped>
.recommend{
  display: flex;
  border-bottom: 8px solid #eeeeee;
  padding: 15px 0 20px;
  & > div{
    flex: 1;
    img{
      display: block;
      width: 80%;
      margin: 0 auto 10px;
    }
    p{
      text-align: center;
      font-size: 14px;
    }
  }
}
</style>
